<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        async function fn(){
            console.log('开始请求A');
            const A = await new Promise((resolve,reject)=>{
                try{
                    //设置定时器（）墨迹ajax请求
                    setTimeout(() => {
                        console.log('请求成功A');
                        resolve()
                    }, 1500);
                }catch(e){
                    reject(e.message)
                }
            })

            console.log('开始请求B');
            const B = await new Promise((resolve,reject)=>{
                try {
                        //设置定时器（）墨迹ajax请求
                        setTimeout(() => {
                            console.log('请求成功B');
                            resolve()
                        }, 1500);
                    } catch (e) {
                        reject(e.message)
                    }
            })
            console.log('开始请求C');
            const C = await new Promise((resolve,reject)=>{
                try {
                        //设置定时器（）墨迹ajax请求
                        setTimeout(() => {
                            console.log('请求成功C');
                            resolve()
                        }, 1500);
                    } catch (e) {
                        reject(e.message)
                    }
            })

        }
        fn()
    </script>
</body>
</html>